<?php
namespace app\admin\model;


class UserlocationModel extends BaseModel
{
    protected $table_name = 'user_location';
    public function lists($where = [],$order = 'id asc'){
        if(empty($order)){
            $order = 'id asc';
        }
        return $this->where($where)->order($order)->select()->toArray();
    }
    public function getAddTimeAttr($value){
        return date('Y-m-d H:i:s',$value);
    }
}
